package com.maimao.model.dynamicform;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.maimao.model.dynamicform.props.Props;
import com.maimao.model.dynamicform.validate.Validate;

import java.io.Serializable;
import java.util.List;

/**
 * 动态表单项 目前仅支持：下拉选择、下拉多选、数字输入框和文本输入框
 *
 * @author MaoLin Wang
 * @date 2020/12/19 8:31 下午
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DynamicForm implements Serializable {

    private static final long serialVersionUID = 3697427363889191493L;
    private String type;
    private String title;
    private String field;
    private Props props;
    private List<Validate> validate;
    /**
     * 下拉框和款选框等需要选项
     */
    private List<Options> options;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public Props getProps() {
        return props;
    }

    public void setProps(Props props) {
        this.props = props;
    }

    public List<Validate> getValidate() {
        return validate;
    }

    public void setValidate(List<Validate> validate) {
        this.validate = validate;
    }

    public List<Options> getOptions() {
        return options;
    }

    public void setOptions(List<Options> options) {
        this.options = options;
    }
}
